<?php
include_once "includes/Constantes.inc.php";

$file_filename = $_GET["fichier"];
$full_file_path = $repertoireDestination.$file_filename;

if (strstr($HTTP_USER_AGENT,"MSIE"))
$attachment="";
else
$attachment="attachment";

header("Cache-Control: post-check=0, pre-check=0");
header("Content-Type: application/octet-stream");
header("Content-Disposition: $attachment; filename=$file_filename");
header("Content-Length: ".filesize($full_file_path));
readfile($full_file_path);
exit();
?>